﻿using Max.Ph5_2009A.NewShopping.Domain;
using Max.Ph5_2009A.NewShopping.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.Ph5_2009A.NewShopping.IService
{
    public interface ISystemCityDataService :IBaseService<SystemCityDataModel>
    {
        /// <summary>
        /// 根据父ID获取数据
        /// </summary>
        /// <param name="pid"></param>
        /// <returns></returns>
        IQueryable<SystemCityDataModel> GetCityData(int pid);

        /// <summary>
        /// 递归查询数据（用于级联选择器）
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        List<SystemCityDataRecursionOutputDto> GetResumateCityData(List<SystemCityDataModel> data,int id);
    }
}
